package com.gitee.dengmin.tenant.holder;

import com.gitee.dengmin.tenant.models.Tenant;

public class TenantHolder {
    public static ThreadLocal<Tenant> holder = new ThreadLocal<>();

    public static void set(Tenant tenant){
        holder.set(tenant);
    }

    public static Tenant get(){
        return holder.get();
    }

    public static void remove(){
        holder.remove();
    }

}
